import com.github.kevinsawicki.http.HttpRequest

// pay notify
String body = '''
<xml>
<openid><![CDATA[oQMltt6f8dgCfkst6T5f-T7BEawk]]></openid>
<out_trade_no><![CDATA[jee3opwewo8rstooa3wpxpx1f5wvd2lx]]></out_trade_no>
<total_fee><![CDATA[5600]]></total_fee>
<result_code><![CDATA[SUCCESS]]></result_code>
</xml>
'''

String pre = 'http://localhost'
String url = pre + '/wx/pay/notify'

println HttpRequest.post(url).send(body).body()